package com.zkthink.ceres.member.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @ClassName AdminConfig
 * @Description: 相关诺金转化参数设置
 * @Author ck
 * @Date 2021/1/20
 * @Version V1.0
 **/
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ceres_admin_config")
@ApiModel(value = "AdminConfig", description = "相关诺金转化参数设置")
@AllArgsConstructor
public class AdminConfig extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 参数key值
     */
    @ApiModelProperty(value = "参数key值")
    @TableField("key_canshu")
    @Excel(name = "参数key值")
    private String keyCanshu;

    /**
     * 参数value值
     */
    @ApiModelProperty(value = "参数value值")
    @TableField("value_canshu")
    @Excel(name = "参数value值")
    private String valueCanshu;

    /**
     * 参数具体描述
     */
    @ApiModelProperty(value = "参数具体描述")
    @TableField("describe_canshu")
    @Excel(name = "参数具体描述")
    private String describeCanshu;


    @Builder
    public AdminConfig(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
                       String keyCanshu, String valueCanshu, String describeCanshu) {
        this.id = id;
        this.createTime = createTime;
        this.createUser = createUser;
        this.updateTime = updateTime;
        this.updateUser = updateUser;
        this.keyCanshu = keyCanshu;
        this.valueCanshu = valueCanshu;
        this.describeCanshu = describeCanshu;
    }
}
